package jmine.tec.rpc.server.representers;

import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import jmine.tec.rpc.server.representation.Representer;
import jmine.tec.rpc.server.representation.representers.NoOperationRepresenter;

import org.junit.Test;

/**
 * Teste para o NoOperationRepresenter
 * 
 * @author lundberg
 */
public class ANoOperationRepresenterShould {

    private Representer<Object, Object> representer = new NoOperationRepresenter<Object, Object>(Object.class, Object.class);

    /**
     * Testa conversão de objetos
     */
    @Test
    public void testNoOperationRepresenter() {
        Object object = new Object();
        assertThat(this.representer.represent(null, object), is(equalTo(object)));
    }
}
